<script type="text/javascript">
  // hide URL field on the iPhone/iPod touch
  function hideUrlBar() {
    document.getElementsByTagName("body")[0].style.marginTop="1px";
    window.scrollTo(0, 1);
  }
  window.addEventListener("load", hideUrlBar);
  window.addEventListener("resize", hideUrlBar);
  window.addEventListener("orientationchange", hideUrlBar);
</script>

<script type="text/javascript" src="__PUBLIC__/Style/My/Default/js/pano2vr_player.js"></script>
<div id="container"></div>
<script type="text/javascript">
  var container = document.getElementById("container"),
      documentWidth = document.documentElement.clientWidth,
      documentHeight = document.documentElement.clientHeight;
  container.style.width = documentWidth + "px";
  container.style.height = documentHeight + "px";
  // create the panorama player with the container
  pano=new pano2vrPlayer("container");
  pano.readConfigUrl("{$configUrl}");
  // hide the URL bar on the iPhone
  hideUrlBar();
</script>